package com.mai.cart;

import com.mai.entity.Product;

public class CartItem {
	private Product product;
	private int quantity; //总数量
	private double price; //总价
	
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public double getPrice() {
		this.price = product.getProduct_price()*quantity;
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	
	
}
